package com.xu.demo.listenerPattern;

// 监听器实现
public class MyListener implements EventListener {
    @Override
    public void onEvent(Event event) {
        System.out.println("Event received: " + event.getMessage());
    }
}
